stylecontext: Remove _REGION_ constants
authorTimm Bäder <mail@baedert.org>
Wed, 5 Oct 2016 16:35:52 +0000 (18:35 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Oct 2016 16:17:21 +0000 (18:17 +0200)
docs/reference/gtk/gtk4-sections.txt
gtk/gtkstylecontext.h
tests/styleexamples.c

index 9c137e180fe4634f65563c76f36166b1ead32cca..57fdbd6711a3d0ae763389f1f379f8a8d69db7cd 100644 (file)
@@ -5776,11 +5776,6 @@ GTK_STYLE_CLASS_VIEW
 GTK_STYLE_CLASS_WARNING
 GTK_STYLE_CLASS_WIDE
 <SUBSECTION>
-GTK_STYLE_REGION_COLUMN
-GTK_STYLE_REGION_COLUMN_HEADER
-GTK_STYLE_REGION_ROW
-GTK_STYLE_REGION_TAB
-<SUBSECTION>
 GtkStyleContext
 gtk_style_context_new
 gtk_style_context_add_provider
index 3b39d1f5d58be9282c9a1003313e8bb051d30d55..0ca572c44a5de8895d217d2245c6f0838011f9f6 100644 (file)
@@ -979,42 +979,6 @@ struct _GtkStyleContextClass
  */
 #define GTK_STYLE_CLASS_WIDE "wide"
 
-/**
- * GTK_STYLE_REGION_ROW:
- *
- * A widget region name to define a treeview row.
- *
- * Deprecated: 3.20: Don't use regions.
- */
-#define GTK_STYLE_REGION_ROW "row"
-
-/**
- * GTK_STYLE_REGION_COLUMN:
- *
- * A widget region name to define a treeview column.
- *
- * Deprecated: 3.20: Don't use regions.
- */
-#define GTK_STYLE_REGION_COLUMN "column"
-
-/**
- * GTK_STYLE_REGION_COLUMN_HEADER:
- *
- * A widget region name to define a treeview column header.
- *
- * Deprecated: 3.20: Don't use regions.
- */
-#define GTK_STYLE_REGION_COLUMN_HEADER "column-header"
-
-/**
- * GTK_STYLE_REGION_TAB:
- *
- * A widget region name to define a notebook tab.
- *
- * Deprecated: 3.20: Don't use regions.
- */
-#define GTK_STYLE_REGION_TAB "tab"
-
 GDK_AVAILABLE_IN_ALL
 GType gtk_style_context_get_type (void) G_GNUC_CONST;
 
index a20e2d6ebdcde00fc874621edbeddc9a0e12ccfa..4020b4f93bd066054c3a33fd8542ec92aa880375 100644 (file)
@@ -218,7 +218,7 @@ draw_cb_extension (GtkWidget *widget, cairo_t *cr)
 
   gtk_style_context_add_class (context, "notebook");
 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-  gtk_style_context_add_region (context, GTK_STYLE_REGION_TAB, 0);
+  gtk_style_context_add_region (context, "tab", 0);
 G_GNUC_END_IGNORE_DEPRECATIONS
 
   gtk_style_context_set_state (context, 0);